<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
			try{
				if(null==request.getSession().getAttribute("userInfo")){
				    out.print("<script>window.location.href='../web/login/login.jsp'</script>");
				}
			}catch(Exception e)
			{
			    out.print("<script>window.location.href='../web/login/login.jsp'</script>");
			}
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<title>病历列表</title>
		<meta http-equiv="pragma" content="no-cache" />
		<meta http-equiv="cache-control" content="no-cache" />
		<meta http-equiv="expires" content="0" />
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
		<meta http-equiv="description" content="This is my page" />
		<script type="text/javascript" src="<%=basePath%>scripts/cookie.js"></script>
		<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #FDFDFD;
}

img {
	border: 0
}

p {
	margin: 0px;
	padding: 0px;
}

form,input,td,th {
	border: medium none;
	margin: 0;
	padding: 0;
}

ul,li {
	margin: 0px;
	padding: 0px;
	list-style-type: none;
}

input {
	border: 0;
	padding: 0
}

.logset {
	background-image: url(<%=basePath %>/web/resources/images/index-search_02.jpg);
	background-repeat: repeat-x;
	height: 32px;
	width: auto;
	line-height: 32px;
}

.logset a {
	font-size: 13px;
	color: #3399cc;
	display: inline-block;
	float: right;
	margin-right: 30px;
}

.content {
	background-image: url(<%=basePath %>/web/resources/images/findCipher_04.png);
	height: 111px;
	background-color: #F9F9F9;
	padding-top: 0px;
	background-repeat: repeat-x;
	padding-left: 30px;
}

.content #search {
	width: 784px;
	height: 41px;
	overflow: hidden;
}

.s_t_wr {
	width: 634px;
	height: 41px;
	margin-right: 8px;
	background-image: url(<%=basePath %>/web/resources/images/search-list_06.gif);
	background-repeat: no-repeat;
	float: left;
	padding: 0px;
	background-position: left top;
}

.s_t {
	width: 595px;
	height: 35px;
	outline: none;
	-webkit-appearance: none;
	font-family: "宋体";
	font-size: 14px;
	line-height: 35px;
	margin-top: 0px;
	margin-right: 0;
	margin-bottom: 0;
	margin-left: 34px;
	background-image: url(<%=basePath %>/web/resources/images/search-list_06-bg.gif);
	color: #999;
	background-repeat: repeat-x;
	background-position: left 0px;
	border-top-width: 0px;
	border-right-width: 0px;
	border-bottom-width: 0px;
	border-left-width: 0px;
	border-top-style: none;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: none;
	padding-top: 5px;
	padding-right: 0px;
	padding-bottom: 5px;
	padding-left: 0px;
}

.s_btn_wr {
	width: 142px;
	height: 41px; *
	position: relative;
	z-index: 0;
	background-image: url(<%=basePath %>/web/resources/images/search-list_08.gif);
	background-repeat: no-repeat;
	float: left;
}

.s_btn {
	width: 142px;
	height: 41px;
	font-size: 0px;
	cursor: pointer;
	background-color: #ddd;
	background-image: url(<%=basePath %>/web/resources/images/search-list_08.gif);
	text-decoration: none;
	color: #E4E4E4;
}

.content .but123 {
	float: right;
	display: block;
	height: 41px;
	width: 441px;
	margin-top: 68px;
}

.content .but123 a {
	float: left;
	font-size: 14px;
	color: #3399cc;
	font-weight: bold;
	font-family: "宋体";
	line-height: 41px;
	height: 41px;
	display: inline-block;
	width: 100px;
	text-align: left;
	padding-left: 47px;
	text-decoration: none;
}

.content .but123 .but1 {
	background-image: url(<%=basePath %>/web/resources/images/search-list_10.gif);
	background-repeat: no-repeat;
	background-position: left top;
}

.content .but123 .but2 {
	background-image: url(<%=basePath %>/web/resources/images/search-list_12.gif);
	background-repeat: no-repeat;
	background-position: left top;
}

.content .but123 .but3 {
	background-image: url(<%=basePath %>/web/resources/images/search-list_14.gif);
	background-repeat: no-repeat;
	background-position: left top;
}

.foot {
	background-image: url(<%=basePath %>/web/resources/images/index-search_25.jpg);
	background-repeat: repeat-x;
	background-position: center top;
	height: 150px;
	background-color: #F9F9F9;
	text-align: center;
	padding-top: 39px;
	line-height: 24px;
	font-size: 13px;
	color: #999;
}

.foot p a {
	color: #999;
}
-->
</style>
		<script>
<!--
function settab_zzjsnet(name,cursel,n){
 for(i=1;i<=n;i++){
  var menu=document.getElementById(name+i);
  var zzjs=document.getElementById("zzjs_"+name+"_"+i);
  menu.className=i==cursel?"hover":"";
  zzjs.style.display=i==cursel?"block":"none";
 }
}
function onDelete(id){
	if (confirm("确定删除吗?"))
	window.location.href='deleteWebCase.action?caseId='+id
}

function zhuxiao(){
	deleteCookie("userName","/");
	deleteCookie("password","/");
	deleteCookie("chkRememberMe","/");
    window.location.href="<%=basePath%>user/qiantanExit.action";
}
</script>
		<link href="<%=basePath %>web/resources/css/huiyuan1.css" rel="stylesheet" type="text/css" />
	</head>

	<body>
	<jsp:include page="../top.jsp"></jsp:include>
		<form>
			<div class="hy-wr" align="center">
				<div id="lib_zzjs_1">
					<img src="<%=basePath %>/web/resources/images/huiyuan_03.jpg" width="5" height="44"
						style="float: left" />
					<div class="lib_menu_zzjsnet ">
						<ul>
							<li id="zzjs_11" onclick="settab_zzjsnet('zzjs_1',1,6)"
								>
								<a href="<%=basePath%>user/memberInfo.action">会员信息管理</a>
							</li>
							<li id="zzjs_12" onclick="settab_zzjsnet('zzjs_1',2,6)">
								<a href="<%=basePath%>question/findInfoList.action">发布求诊信息</a>
							</li>
							<li id="zzjs_13" onclick="settab_zzjsnet('zzjs_1',3,6)" class="hover">
								<a href="<%=basePath%>tiCase/searchMemberCase.action"><font color="#000">我的病历</font></a>
							</li>
							<li id="zzjs_14" onclick="settab_zzjsnet('zzjs_1',4,6)">
								<a href="<%=basePath%>stage/dyHelp.action">导医信息</a>
							</li>
							<li id="zzjs_15" onclick="settab_zzjsnet('zzjs_1',5,6)">
								<a href="<%=basePath %>web/mem/passwordModify.jsp">修改密码</a>
							</li>
							<li id="zzjs_16" onclick="settab_zzjsnet('zzjs_1',6,6)">
								<a href="javascript:zhuxiao();">安全注销</a>
							</li>
						</ul>
					</div>
					<img src="<%=basePath %>/web/resources/images/huiyuan_08.jpg" width="5" height="44"
						style="float: left" />
				</div>

				<div class="lib_Contentbox_zzjs">
					<div id="zzjs_zzjs_1_1" style="display: none"></div>
					<div id="zzjs_zzjs_1_2">
						<div class="qiehuan">
							<ul style="margin-left: 471px;">
								<li>
									<a href="<%=basePath %>stage/ctHelp.action">ct上传帮助</a>
								</li>
								<li>
									<a href="<%=basePath %>tiCase/showPage.action?flag=2">发布新病历</a>
								</li>
								<li>
									<a href="<%=basePath%>tiCase/searchMemberCase.action">已发布病历</a>
								</li>
							</ul>
						</div>
						<div class="cont">
							<div class="table1">
								<table width="762" border="0" cellspacing="1" cellpadding="0">
									<tr>
										<td width="115" height="31" align="center"
											background="<%=basePath %>/web/resources/images/qiuzhen_03.jpg">
											<strong>序&nbsp;&nbsp;号</strong>
										</td>
										<td width="279" align="center"
											background="<%=basePath %>/web/resources/images/qiuzhen_03.jpg">
											<strong>所属科室</strong>
										</td>
										<td width="180" align="center"
											background="<%=basePath %>/web/resources/images/qiuzhen_03.jpg">
											<strong>发布时间</strong>
										</td>
										<td width="183" align="center"
											background="<%=basePath %>/web/resources/images/qiuzhen_03.jpg">
											<strong>操&nbsp;&nbsp;作</strong>
										</td>
									</tr>
									<s:iterator value="tiList" id="ts"  status="s">
									<tr>
										<td height="31" align="center" bgcolor="#f4f4f4">
											<s:property value='#s.index+1'/> 
										</td>
										<td align="center" bgcolor="#f4f4f4">
										     <s:property value="name" /> 
										</td>
										<td align="center" bgcolor="#f4f4f4">
										    <s:property value="createTimeStr" /> 
										</td>
										<td align="center" bgcolor="#f4f4f4">
											<a href="<%=basePath %>tiCase/showPage.action?flag=1&caseId=<s:property value="id" />" style="color: #666">查看</a>&nbsp;&nbsp;
											<a href="<%=basePath %>tiCase/showPage.action?flag=2&caseId=<s:property value="id" />" style="color: #666">修改</a>&nbsp;&nbsp;
											<a href="#" onclick="onDelete('<s:property value="id"/>')" style="color: #666">删除</a>
										</td>
									</tr>
								   </s:iterator>
								</table>
							</div>
						</div>
					</div>
					<div id="zzjs_zzjs_1_3"></div>
					<div id="zzjs_zzjs_1_4"></div>
					<div id="zzjs_zzjs_1_5"></div>
					<div id="zzjs_zzjs_1_6"></div>
				</div>
				<div class="lib-contentbox-zzjsbot"></div>
			</div>
			<div class="sear3but"><span><strong>快捷导航：</strong></span><a href="<%=basePath %>stage/showHosAll.action">医院检索大全</a> <a href="<%=basePath %>stage/toCase.action">病历填写帮助</a> <a href="<%=basePath %>stage/toDy.action">导医服务</a></div>

			<div class="foot">
				<p>
					<a onclick="this.style.behavior='url(#default#homepage)';this.setHomePage(window.location.href);" href="javascript:;">把网站设为主页</a> &nbsp;&nbsp;&nbsp;
					<a href="javascript:window.external.addFavorite(window.location.href,'医生在线');">把网站添加到收藏夹</a>
				</p>
				<p>
					<a href="<%=basePath%>aboutus/show.action?id=1">关于我们</a> |
					<a href="<%=basePath%>aboutus/show.action?id=1">About US</a>
				</p>
				<p>
					<a href="#">&copy;2012 备案号：京ICP证xxxxxxx号</a>
				</p>
			</div>
		</form>
	</body>
</html>
